<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">

<body>

<ui:composition template="/templates/templateAdmin.xhtml">

	<ui:define name="title">Cambio de Password</ui:define>
	<ui:define name="menu">
		<ui:include src="/admin/menu.xhtml" />
	</ui:define>
	<ui:define name="body">
		<h:form id="loginForm" prependId="false">
			<rich:panel>
				<h:panelGrid style=" width:90%" columns="3">
<!--					<rich:graphValidator>-->
						<h:outputLabel for="password" value="#{msg['password.newPass']}" />
						<h:inputSecret id="password" required="true" requiredMessage="#{msg['password.newPass.empty']}" maxlength="30" size="40" value="#{passwordChange.password}">
							<f:validateLength minimum="3" />
							<f:validator validatorId="passwordValidator"/>
								<f:attribute name="confirm" value="#{confirm}" />
								
						</h:inputSecret>
						<rich:message for="password" ajaxRendered="true" />

						<h:outputLabel for="confirm" value="#{msg['password.reNewPass']}" />
						<h:inputSecret id="confirm" binding="#{confirm}" required="true" requiredMessage="#{msg['password.reNewPass.empty']}" maxlength="30" size="40" value="#{passwordChange.confirm}">
							<f:validateRequired />
						</h:inputSecret>
						<rich:message for="confirm" />
<!--					</rich:graphValidator>-->
				</h:panelGrid>
				<rich:notifyMessages stayTime="2000" nonblocking="true" />
				<h:messages />
				<h:panelGroup style="display:block; text-align:right">
					<a4j:commandButton type="submit" id="submit" value="#{msg['submit.label']}" style="width:80px" action="#{passwordChange.savePassword}" />
				</h:panelGroup>
			</rich:panel>
		</h:form>
	</ui:define>
</ui:composition>
</body>
</html>
